#include <iostream>
template <typename... T> auto sum(T... t)
{
	return (t + ...);
}

template <typename... T> auto agv(T... t)
{
        std::cout << sizeof...(t) << std::endl;
	return (t + ...)/sizeof...(t);
}

int main()
{
	std::cout << sum(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) << std::endl;
        std::cout << agv(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) << std::endl;
        return 0;
}